﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master2.master"
    AutoEventWireup="true" CodeFile="new_account.aspx.cs" Inherits="furniture_Store_new_account" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--<script type="text/javascript"><!--
        var form = "";
        var submitted = false;
        var error = false;
        var error_message = "";

        function check_input(field_name, field_size, message) {
            if (form.elements[field_name] && (form.elements[field_name].type != "hidden")) {
                var field_value = form.elements[field_name].value;

                if (field_value.length < field_size) {
                    error_message = error_message + "* " + message + "\n";
                    error = true;
                }
            }
        }

        function check_radio(field_name, message) {
            var isChecked = false;

            if (form.elements[field_name] && (form.elements[field_name].type != "hidden")) {
                var radio = form.elements[field_name];

                for (var i = 0; i < radio.length; i++) {
                    if (radio[i].checked == true) {
                        isChecked = true;
                        break;
                    }
                }

                if (isChecked == false) {
                    error_message = error_message + "* " + message + "\n";
                    error = true;
                }
            }
        }

        function check_select(field_name, field_default, message) {
            if (form.elements[field_name] && (form.elements[field_name].type != "hidden")) {
                var field_value = form.elements[field_name].value;

                if (field_value == field_default) {
                    error_message = error_message + "* " + message + "\n";
                    error = true;
                }
            }
        }

        function check_password(field_name_1, field_name_2, field_size, message_1, message_2) {
            if (form.elements[field_name_1] && (form.elements[field_name_1].type != "hidden")) {
                var password = form.elements[field_name_1].value;
                var confirmation = form.elements[field_name_2].value;

                if (password.length < field_size) {
                    error_message = error_message + "* " + message_1 + "\n";
                    error = true;
                } else if (password != confirmation) {
                    error_message = error_message + "* " + message_2 + "\n";
                    error = true;
                }
            }
        }

        function check_form(form_name) {
            if (submitted == true) {
                alert("This form has already been submitted. Please press Ok and wait for this process to be completed.");
                return false;
            }

            error = false;
            form = form_name;
            error_message = "Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n";

            check_radio("gender", "Please select your Gender.");

            check_input("firstname", 2, "Your First Name must contain a minimum of 2 characters.");
            check_input("lastname", 2, "Your Last Name must contain a minimum of 2 characters.");

            check_input("dob", 10, "Your Date of Birth must be in this format: MM/DD/YYYY (eg 05/21/1970)");

            check_input("email_address", 6, "Your E-Mail Address must contain a minimum of 6 characters.");
            check_input("street_address", 5, "Your Street Address must contain a minimum of 5 characters.");
            check_input("postcode", 4, "Your Post Code must contain a minimum of 4 characters.");
            check_input("city", 3, "Your City must contain a minimum of 3 characters.");

            check_input("state", 2, "Your State must contain a minimum of 2 characters.");

            check_select("country", "", "You must select a country from the Countries pull down menu.");

            check_input("telephone", 3, "Your Telephone Number must contain a minimum of 3 characters.");

            check_password("password", "confirmation", 5, "Your Password must contain a minimum of 5 characters.", "The Password Confirmation must match your Password.");
            check_password("password_new", "password_confirmation", 5, "Your new Password must contain a minimum of 5 characters.", "The Password Confirmation must match your new Password.");

            if (error == true) {
                alert(error_message);
                return false;
            } else {
                submitted = true;
                return true;
            }
        }
//--></script>--%>
    <div class="title-t">
        <div class="title-b">
            <div class="title-icon">
            </div>
            <h1>
                My Account Information</h1>
        </div>
    </div>
    <p class="infoString">
        &nbsp;&nbsp;<font color="#FF0000"><small><strong>NOTE:</strong></small></font> If
        you already have an account with us, please login at the <a href="Login.aspx"><u>login
            page</u></a>.</p>
    <div class="contentContainer">
        <div class="contentPadd">
            <div>
                <h3>
                    <span class="inputRequirement" style="float: right;">* Required information</span>Your
                    Personal Details</h3>
            </div>
            <div class="contentInfoText">
                <table border="0" cellspacing="2" cellpadding="2" width="100%">
                    <tr>
                        <td class="fieldKey">
                            Gender:
                        </td>
                        <td class="fieldValue radio">
                            <div>
                                <asp:RadioButtonList ID="rblGender" runat="server" RepeatDirection="Horizontal" Style="background: none;
                                    border: 0; width: 150px">
                                    <asp:ListItem Text="Male" Value="1" />
                                    <asp:ListItem Text="Female" Value="2" />
                                </asp:RadioButtonList>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            First Name:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtFirstName" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            Last Name:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtLastName" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            Date of Birth:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtBirthDay" runat="server" CssClass="input"></asp:TextBox>* (eg.
                            05/21/1970)
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            E-Mail Address:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtEmail" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <h3>
                Company Details</h3>
            <div class="contentInfoText">
                <table border="0" cellspacing="2" cellpadding="2" width="100%">
                    <tr>
                        <td class="fieldKey">
                            Company Name:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtCompany" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <h3>
                Your Address</h3>
            <div class="contentInfoText">
                <table border="0" cellspacing="2" cellpadding="2" width="100%">
                    <tr>
                        <td class="fieldKey">
                            Street Address:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtAdres" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            Suburb:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtSubUrb" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            Post Code:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtPostaKodu" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            City:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtCity" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            State/Province:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtState" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            Country:
                        </td>
                        <td class="fieldValue">
                            <asp:DropDownList ID="ddlCountry" runat="server" CssClass="input">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
            <h3>
                Your Contact Information</h3>
            <div class="contentInfoText">
                <table border="0" cellspacing="2" cellpadding="2" width="100%">
                    <tr>
                        <td class="fieldKey">
                            Telephone Number:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtTel" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            Fax Number:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtFax" runat="server" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            Newsletter:
                        </td>
                        <td class="fieldValue">
                            <asp:CheckBox ID="chkNewsletter" runat="server" Checked="true" />
                        </td>
                    </tr>
                </table>
            </div>
            <h3>
                Your Password</h3>
            <div class="contentInfoText">
                <table border="0" cellspacing="2" cellpadding="2" width="100%">
                    <tr>
                        <td class="fieldKey">
                            Password:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtPassword" runat="server" CssClass="input" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldKey">
                            Password Confirmation:
                        </td>
                        <td class="fieldValue">
                            <asp:TextBox ID="txtConfirm" runat="server" CssClass="input" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="buttonSet fl_right">
                <span class="buttonAction">
                    <div class="button_content button_content2">
                        <div class="button bg_button">
                            <div class="button-t">
                                <span class="tdbLink">
                                    <asp:Button ID="btnSubmit" runat="server" Text="Continue" />
                                </span>
                            </div>
                        </div>
                    </div>
                </span>
            </div>
        </div>
    </div>
</asp:Content>
